home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / What's New? / Development Kits / ColorSync™ 2.0.1 GM / Interfaces / PInterfaces / CMMComponent.p < prev    next >
Encoding:
Text File  |  1995-12-12  |  6.2 KB  |  199 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMMComponent.p
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    2.0f3
  8.  
  9.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, send the file and version
  13.                  information (from above) and the problem description to:
  14.  
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMMComponent;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMMCOMPONENT__}
  30. {$SETC __CMMCOMPONENT__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMMComponentIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __QUICKDRAW__}
  43. {$I Quickdraw.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    QuickdrawText.p                                                }
  47. {        ScriptLayout.p                                            }
  48.  
  49. {$IFC UNDEFINED __COMPONENTS__}
  50. {$I Components.p}
  51. {$ENDC}
  52.  
  53. {$IFC UNDEFINED __CMAPPLICATION__}
  54. {$I CMApplication.p}
  55. {$ENDC}
  56. {    Files.p                                                        }
  57. {        OSUtils.p                                                }
  58. {            Memory.p                                            }
  59. {        Finder.p                                                }
  60. {    Printing.p                                                    }
  61. {        Errors.p                                                }
  62. {        Dialogs.p                                                }
  63. {            Windows.p                                            }
  64. {                Events.p                                        }
  65. {                Controls.p                                        }
  66. {                    Collections.p                                }
  67. {                    Appearance.p                                }
  68. {                    TextObjects.p                                }
  69. {                        Unicode.p                                }
  70. {                    Menus.p                                        }
  71. {                AppleEvents.p                                    }
  72. {                    EPPC.p                                        }
  73. {                        AppleTalk.p                                }
  74. {                        PPCToolbox.p                            }
  75. {                        Processes.p                                }
  76. {                    Notification.p                                }
  77. {                        Kernel.p                                }
  78. {                            MachineExceptions.p                    }
  79. {                            Timing.p                            }
  80. {                Drag.p                                            }
  81. {                    TextEdit.p                                    }
  82. {    CMICCProfile.p                                                }
  83.  
  84. {$PUSH}
  85. {$ALIGN MAC68K}
  86. {$LibExport+}
  87.  
  88. CONST
  89.     CMMInterfaceVersion            = 1;
  90.  
  91. { Component function selectors }
  92. { Required }
  93.     kCMMInit                    = 0;
  94.     kNCMMInit                    = 6;
  95.     kCMMMatchColors                = 1;
  96.     kCMMCheckColors                = 2;
  97.  
  98. { Optional }
  99.     kCMMValidateProfile            = 8;
  100.     kCMMFlattenProfile            = 14;
  101.     kCMMUnflattenProfile        = 15;
  102.     kCMMMatchBitmap                = 9;
  103.     kCMMCheckBitmap                = 10;
  104.     kCMMMatchPixMap                = 3;
  105.     kCMMCheckPixMap                = 4;
  106.     kCMMConcatenateProfiles        = 5;
  107.     kCMMConcatInit                = 7;
  108.     kCMMNewLinkProfile            = 16;
  109.     kCMMGetPS2ColorSpace        = 11;
  110.     kCMMGetPS2ColorRenderingIntent = 12;
  111.     kCMMGetPS2ColorRendering    = 13;
  112.     kCMMGetPS2ColorRenderingVMSize = 17;
  113.  
  114.  
  115. FUNCTION NCMInit(CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
  116.     {$IFC NOT GENERATINGCFM}
  117.     INLINE $2F3C, 8, 6, $7000, $A82A;
  118.     {$ENDC}
  119. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  120.     {$IFC NOT GENERATINGCFM}
  121.     INLINE $2F3C, 8, 0, $7000, $A82A;
  122.     {$ENDC}
  123. FUNCTION CMMatchColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT): CMError;
  124.     {$IFC NOT GENERATINGCFM}
  125.     INLINE $2F3C, 8, 1, $7000, $A82A;
  126.     {$ENDC}
  127. FUNCTION CMCheckColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT; VAR result: LONGINT): CMError;
  128.     {$IFC NOT GENERATINGCFM}
  129.     INLINE $2F3C, 12, 2, $7000, $A82A;
  130.     {$ENDC}
  131. { Optional functions }
  132. FUNCTION CMMValidateProfile(CMSession: ComponentInstance; prof: CMProfileRef; VAR valid: BOOLEAN): CMError;
  133.     {$IFC NOT GENERATINGCFM}
  134.     INLINE $2F3C, 8, 8, $7000, $A82A;
  135.     {$ENDC}
  136. FUNCTION CMMFlattenProfile(CMSession: ComponentInstance; prof: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  137.     {$IFC NOT GENERATINGCFM}
  138.     INLINE $2F3C, 16, 14, $7000, $A82A;
  139.     {$ENDC}
  140. FUNCTION CMMUnflattenProfile(CMSession: ComponentInstance; VAR resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  141.     {$IFC NOT GENERATINGCFM}
  142.     INLINE $2F3C, 12, 15, $7000, $A82A;
  143.     {$ENDC}
  144. FUNCTION CMMatchBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
  145.     {$IFC NOT GENERATINGCFM}
  146.     INLINE $2F3C, 16, 9, $7000, $A82A;
  147.     {$ENDC}
  148. FUNCTION CMCheckBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
  149.     {$IFC NOT GENERATINGCFM}
  150.     INLINE $2F3C, 16, 10, $7000, $A82A;
  151.     {$ENDC}
  152. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
  153.     {$IFC NOT GENERATINGCFM}
  154.     INLINE $2F3C, 12, 3, $7000, $A82A;
  155.     {$ENDC}
  156. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; {CONST}VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; VAR myBitMap: BitMap; refCon: UNIV Ptr): CMError;
  157.     {$IFC NOT GENERATINGCFM}
  158.     INLINE $2F3C, 16, 4, $7000, $A82A;
  159.     {$ENDC}
  160. FUNCTION CMConcatInit(CMSession: ComponentInstance; VAR profileSet: CMConcatProfileSet): CMError;
  161.     {$IFC NOT GENERATINGCFM}
  162.     INLINE $2F3C, 4, 7, $7000, $A82A;
  163.     {$ENDC}
  164. FUNCTION CMNewLinkProfile(CMSession: ComponentInstance; VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
  165.     {$IFC NOT GENERATINGCFM}
  166.     INLINE $2F3C, 12, 16, $7000, $A82A;
  167.     {$ENDC}
  168. FUNCTION CMMGetPS2ColorSpace(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  169.     {$IFC NOT GENERATINGCFM}
  170.     INLINE $2F3C, 16, 11, $7000, $A82A;
  171.     {$ENDC}
  172. FUNCTION CMMGetPS2ColorRenderingIntent(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  173.     {$IFC NOT GENERATINGCFM}
  174.     INLINE $2F3C, 16, 12, $7000, $A82A;
  175.     {$ENDC}
  176. FUNCTION CMMGetPS2ColorRendering(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  177.     {$IFC NOT GENERATINGCFM}
  178.     INLINE $2F3C, 20, 13, $7000, $A82A;
  179.     {$ENDC}
  180. FUNCTION CMMGetPS2ColorRenderingVMSize(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: LONGINT): CMError;
  181.     {$IFC NOT GENERATINGCFM}
  182.     INLINE $2F3C, 12, 17, $7000, $A82A;
  183.     {$ENDC}
  184. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  185.     {$IFC NOT GENERATINGCFM}
  186.     INLINE $2F3C, 12, 5, $7000, $A82A;
  187.     {$ENDC}
  188.  
  189. {$ALIGN RESET}
  190. {$POP}
  191.  
  192. {$SETC UsingIncludes := CMMComponentIncludes}
  193.  
  194. {$ENDC} {__CMMCOMPONENT__}
  195.  
  196. {$IFC NOT UsingIncludes}
  197.  END.
  198. {$ENDC}
  199.